package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsMarketing;
import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsMarketingExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DirectMailGoodsMarketingMapper {
    long countByExample(DirectMailGoodsMarketingExample example);

    int deleteByExample(DirectMailGoodsMarketingExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(DirectMailGoodsMarketing record);

    int insertSelective(@Param("record") DirectMailGoodsMarketing record, @Param("selective") DirectMailGoodsMarketing.Column ... selective);

    DirectMailGoodsMarketing selectOneByExample(DirectMailGoodsMarketingExample example);

    List<DirectMailGoodsMarketing> selectByExample(DirectMailGoodsMarketingExample example);

    DirectMailGoodsMarketing selectByPrimaryKey(Integer id);

    DirectMailGoodsMarketing selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DirectMailGoodsMarketing record, @Param("example") DirectMailGoodsMarketingExample example, @Param("selective") DirectMailGoodsMarketing.Column ... selective);

    int updateByExample(@Param("record") DirectMailGoodsMarketing record, @Param("example") DirectMailGoodsMarketingExample example);

    int updateByPrimaryKeySelective(@Param("record") DirectMailGoodsMarketing record, @Param("selective") DirectMailGoodsMarketing.Column ... selective);

    int updateByPrimaryKey(DirectMailGoodsMarketing record);

    int batchInsert(@Param("list") List<DirectMailGoodsMarketing> list);

    int batchInsertSelective(@Param("list") List<DirectMailGoodsMarketing> list, @Param("selective") DirectMailGoodsMarketing.Column ... selective);

    int logicalDeleteByExample(@Param("example") DirectMailGoodsMarketingExample example);

    int logicalDeleteByPrimaryKey(Integer id);
}